<div id="order-pay-dialog" class="order-pay-dialog-c" style="width:600px;">
	<h3><span id="order-pay-dialog-close" class="close" onclick="return X.boxClose();">Fechar</span>Detalhes do Pedido</h3>
	<div style="overflow-x:hidden;padding:10px;" id="dialog-order-id" oid="{$order['id']}">
	<table width="96%" align="center" class="coupons-table">
		<tr><td width="80"><b>Usuário:</b></td><td>{$user['username']} / {$user['email']}</td></tr>
		<tr><td><b>Oferta:</b></td><td>{$team['title']}</td></tr>
		<tr><td><b>Quantidade:</b></td><td>{$order['quantity']}</td></tr>
	<!--{if $order['condbuy']}-->
		<tr><td><b>Opções:</b></td><td>{$order['condbuy']}</td></tr>
	<!--{/if}-->
		<tr><td><b>Status:</b></td><td>{$paystate[$order['state']]}</td></tr>
		<tr><td><b>Pedido N.:</b></td><td>{$order['pay_id']}</td></tr>
		<tr><td><b>Pagamento:</b></td><td>
		<!--{if $order['credit']}-->Pago {$currency} <b>${moneyit3($order['credit'])}</b> com saldo<!--{/if}--> &nbsp;
		<!--{if $order['service']!='credit'&&$order['money']}-->, Pago {$currency} <b>${moneyit3($order['money'])}</b> com {$payservice[$order['service']]}<!--{/if}-->
		<!--{if $order['card_id']}-->&nbsp;Pago: {$currency} <b>${moneyit3($order['card'])}</b> com Pontos<!--{/if}--></td></tr>
		<tr><td><b>Data:</b></td><td>${date('d-m-Y H:i', $order['create_time'])} / ${date('d-m-Y H:i', $order['pay_time'])}</td></tr>

	<!--{if $user['mobile']}-->
		<tr><td><b>Celular?</b></td><td>{$user['mobile']}</td></tr>
	<!--{/if}-->

	<!--{if $user['qq']}-->
		<tr><td><b>QQ?</b></td><td>{$user['qq']}</td></tr>
	<!--{/if}-->

	<!--{if $user['msn']}-->
		<tr><td><b>MSN?</b></td><td>{$user['msn']}</td></tr>
	<!--{/if}-->
	<!--{if $order['remark']}-->
		<tr><td width="80"><b>Notas do comprador?</b></td><td>${htmlspecialchars($order['remark'])}</td></tr>
	<!--{/if}-->

	<!--{if $team['delivery']=='express'}-->
		<tr><th colspan="2"><hr/></th></td>
		<tr><td width="80"><b>Receptor:</b></td><td>{$order['realname']}</td></tr>
		<tr><td><b>Número do celular:</b></td><td>{$order['mobile']}</td></tr>
		<tr><td><b>Endereço:</b></td><td>{$order['address']}</td></tr>
		<tr><th colspan="2"><hr/></th></td>
		<tr><td><b>Informações de entrega:</b></td><td><select name="express_id" id="order-dialog-select-id">${Utility::Option($option_express, $order['express_id'], ' Por favor selecione a entrega')}</select>&nbsp;<input type="text" name="in" id="order-dialog-input-id" value="{$order['express_no']}" style="width:150px;" maxLength="32" />&nbsp;&nbsp;<input type="submit" value="Enviar" onclick="return X.manage.orderexpress();"/></td></tr>
	<!--{/if}-->

	<!--{if $order['state']=='pay'}-->
		<tr><th colspan="2"><hr/></th></td>
		<tr><td><b>Politica de reembolso:</b></td><td><select name="refund" id="order-dialog-refund-id">${Utility::Option($option_refund, '', ' por favor selecione a forma de reembolso')}</select>&nbsp;<input type="submit" value="Sim" onclick="return X.manage.orderrefund();"/></td></tr>
	<!--{/if}-->

	</table>
	</div>
</div>
